/*
 * 作者:熊猫
 * 日期:2017 - 3 - 15 10 - 32 - 3
 *
 */

package net.lainiao.morethread;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/3/15.
 */
public class MyDateUtils {
    final static SimpleDateFormat simpleDateFormat1=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");;
    final static SimpleDateFormat simpleDateFormat2=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS");;
    public static String getFormatString(Date date){
        return simpleDateFormat1.format(date);
    }
    public  static String getFormatStringInfo(Date  date){
        return simpleDateFormat2.format(date);
    }

//    public static void main(String[] args) {
//        System.out.println(MyDateUtils.getFormatString(new Date()));
//    }
}
